package com.offices.subscribe.dto.message;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlElementWrapper;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import lombok.Data;
import java.util.Map;

@Data
public class VoiceMessage extends BaseMessage {

    @JacksonXmlElementWrapper(localName = "Voice")
    @JacksonXmlProperty(localName = "MediaId")
    private String mediaId;

    public VoiceMessage(Map<String, String> request, String mediaId) {
        super(request);
        this.setMsgType("voice");
        this.mediaId = mediaId;
    }
}
